package com.ylyq.ylxx.model.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName OceanengineCreativematerialInfo
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/7/2 10:17
 * @Version 1.0
 */
@NoArgsConstructor
@Data
@ApiModel(value = "创意素材信息返回参数")
public class OceanengineCreativematerialInfo {

    /**
     * message : OK
     * code : 0
     * data : [{"ad_id":"xx","title":"xxx","id":"xxx"}]
     * request_id : xxx
     */

    private String message;
    private int code;
    private String request_id;
    private List<DataBean> data;

    @NoArgsConstructor
    @Data
    @ApiModel(value = "创意素材信息返回参数实体")
    public static class DataBean {
        /**
         * ad_id : xx
         * title : xxx
         * id : xxx
         */
        @ApiModelProperty(value = "广告ID")
        private String ad_id;
        @ApiModelProperty(value = "创意标题")
        private String title;
        @ApiModelProperty(value = "创意ID")
        private String id;
        @ApiModelProperty(value = "广告主ID")
        private String advertiser_id;
        @ApiModelProperty(value = "创意状态, 详见【附录-创意状态】")
        private String opt_status;
        @ApiModelProperty(value = "创意类型, 详见【附录-创意类型】")
        private String image_mode;

        private List<ImageDataBean> image_info;

        @NoArgsConstructor
        @Data
        @ApiModel(value = "创意素材信息返回参数实体_图片素材信息")
        public static class ImageDataBean {
            @ApiModelProperty(value = "图片ID")
            private String url;
            @ApiModelProperty(value = "宽")
            private String width;
            @ApiModelProperty(value = "高")
            private String height;
        }

    }
}
